area of a triangle using calculus